package fruit;

public class Apple extends BaseFruit {
    public double number;

    public Apple(int number) {
        this.fruitName = "苹果";
        this.number = number;
    }

    @Override
    public Double price() {
        return (this.number * 8);
    }
}
